package com.sz.web.common.control;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面跳转控制
 */
@Controller
@RequestMapping(value = "/")
public class PageControl {

    @Value("${web.login.VerificationCode}")
    String verificationCode;

    @RequestMapping(value = "web")
    public String login(Model model){
        model.addAttribute("verificationCode",verificationCode);
        return "login";
    }

    @RequestMapping(value = "index")
    public String index(){
        return "index";
    }
    @RequestMapping(value = "desktop")
    public String desktop(){
        return "desktop";
    }
}
